package com.springboot.test.exception;

import com.springboot.test.enums.ResultEnum;

/**
 * @name:
 * @desc:
 * @author: qk on 2017/8/12 18:27.
 */
public class WebException extends RuntimeException {
    private Integer code;

    public WebException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
